//
//  WmcDelegate.swift
//  YPWatermarkCamera
//
//  Created by 赵新 on 2022/4/20.
//

import UIKit

open class WmcDelegate {
    // Open

    /// 登录相关代理
    open weak var loginDelegate: WmcLoginDelegate?

    /// 信息相关代理
    open weak var infoDelegate: WmcInfoDelegate?

    /// 活动总代理
    open weak var activityDelegate: WmcActivityDelegate?

    /// 活动-送积分代理
    open weak var a_giveIntegralDelegate: WmcA_GiveIntegralDelegate?
    
    /// 权限相关
    open weak var authorityDelegate: WmcAuthorityDelegate?

    
    // Internal

    /// 释放代理
    /// 登陆代理不可释放，需要全局持有，主要用于同步用户信息
    func releaseDelegate() {
        infoDelegate = nil
        activityDelegate = nil
        a_giveIntegralDelegate = nil
    }
}
